<#include "/includes/header.ftl">


<#if product?has_content>
<#assign prdsid = product.sysId>
<#assign brdsid = "">

<#if product.brand?has_content><#assign brdsid=product.brand.sysId></#if>
<div id='productlist_nav'>
	<#if primaryProductCategoryTrail?has_content>
		<#--articles path-->
			<b>Your Position:&nbsp;</b><A href='<@spring.url "/home.jsp"/>'>Product Home</A>&gt;&gt;
			<#list primaryProductCategoryTrail as g>
				<A href='<@spring.url "/listcategory2product.jsp?pdgsid=${g.sysId}&brdsid=${brdsid}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
			</#list>
			<b><#if product.brand?has_content>${product.brand.name?default("No-Brand-Name")}</#if></b>
	</#if>			
</div>
<div id="productdetail_intro">
	<div class='product_img'><IMG src='${product.mediumImage?default("http://localhost:8080/jubao/IMAGES/PRODUCT/PRODUCT_MEDIUM_DEFAULT.JPG")}' width="200" height="150" style="border: 1px solid rgb(0, 0, 0);" /></div>
	<div class='product_desc'>${product.name?default("No-Name")} &nbsp;<A href='<@spring.url "/editproductprice.php?prdsid=${product.sysId}"/>'>Edit My Price</A>	
	<br/>${product.shortDesc?default("No-Short-Desc")}</div>
</div>



<#assign curr_argsid="">
<#assign curr_bsgsid="">
<#if areaCategory?has_content><#assign curr_argsid=areaCategory.sysId></#if>
<#if businessCategory?has_content><#assign curr_bsgsid=businessCategory.sysId></#if>

<div id='productlist_nav'>
	<#if areaPrimaryCategoryTrail?has_content>
			<b>Your Position:&nbsp;</b><A href='<@spring.url "/home.jsp#store"/>'>Store Home</A>&gt;&gt;
			<#list areaPrimaryCategoryTrail as g>
				<A href='<@spring.url "/viewproductdetail.jsp?prdsid=${prdsid}&argsid=${g.sysId}&bsgsid=${curr_bsgsid}"/>'>${g.name?default("No-Name")}</A>&gt;&gt;
			</#list>
			<b><#if businessCategory?has_content>${businessCategory.name?default("No-Name")}</#if>:</b>					
	</#if>			
</div>
			

<div id='productlist_categories'>
	<#if areaCategory?has_content && areaChildCategoryList?has_content>
		<B>${areaCategory.name?default("No-Name")}分区:</B>
		<#list areaChildCategoryList as g>
			<A href='<@spring.url "/viewproductdetail.jsp?prdsid=${prdsid}&argsid=${g.sysId}&bsgsid=${curr_bsgsid}"/>'>${g.name?default(g.id)}</A>
		</#list>				
	</#if>				
</div>

<div id='productlist_contents'>
	<#if productPriceList?has_content>
		<#list productPriceList as pp>
			<li>
			<div class='product_img'><A href='<@spring.url "/viewstoredetail.jsp?stosid=${pp.store.sysId}&argsid=${curr_argsid}"/>'  ><IMG src='${pp.store.smallImage?default("http://localhost:8080/jubao/IMAGES/STORE/STORE_SMALL_DEFAULT.JPG")}' width="80" height="60" style="border: 1px solid rgb(0, 0, 0);" /></A></div>
			<div class='product_desc'><A href='<@spring.url "/viewstoredetail.jsp?stosid=${pp.store.sysId}&argsid=${curr_argsid}"/>'   class='product_title'>${pp.store.name?default("No-Name")}</A>
			<br/>${pp.shortDesc?default("No-Short-Desc")} pp.listPrice=${pp.listPrice?default(0)}</div>
			</li>
		</#list>								
	</#if>						
</div>

<#if productPriceList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>

<div id="productdetail_description">${product.longDesc?default("No-Product-longDesc")}</div>
<#else>
	Not Found the product.
</#if>
<#include "/includes/footer.ftl">